package my.learn.server.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import my.learn.server.entity.WechatUser;
import my.learn.server.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import my.learn.server.service.IUserService;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, WechatUser> implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public WechatUser queryUserById(Integer id) {
        return userMapper.selectById(id);
//        return userMapper.selectByPrimaryKey(id);
    }
}
